import type { IListRequest } from '../types/request';
import { http } from '../utils/http';
import { type ITopic } from '@/types/topic';

export const getListApi = (data: IListRequest) => {
  return http<ITopic[]>({
    url: '/topics',
    method: 'GET',
    data,
  });
};
